import { createRouter, createWebHistory } from 'vue-router'
import index from "../views/index821/index821"
import podcast from "@/views/podcast821/podcast821";
import profile from "@/views/profile821/profile821";
import detail from "@/views/detail821/detail821";
import Search from "@/views/search821/Search821";
const routes = [
  {
    path: '/',
    name: 'index',
    component: index
  },
  {
    path: '/index',
    name: 'index',
    component:index
  },
  {
    path: '/podcast',
    name: 'podcast',
    component:podcast
  },
  {
    path: '/profile',
    name: 'profile',
    component:profile
  },
  {
    path: '/detail/:mvid',
    name: 'detail',
    component:detail
  },
  {
    path: '/Search/:keywords',
    name: 'Search',
    component:Search
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
